// Copyright (c) Huoty, All rights reserved
// Author: Huoty <sudohuoty@163.com>
// CreateTime: 2021-03-06 16:12:00

package main

import (
    "fmt"
    "bytes"
    "strings"
)

func main() {
    var res bytes.Buffer
    // funds := make([]string, 2, 2)
    funds := make([]string, 0, 2)
    fmt.Println(len(funds))
    funds = append(funds, "123456")
    funds = append(funds, "hello world")
    fmt.Println(funds, len(funds))
    fmt.Println(strings.Join(funds[:], "\n"))
    head := "code,display_name,name,start_date,end_date,type"
    res.WriteString(head + "\n" + strings.Join(funds[:], "\n"))
    data := res.String()
    fmt.Println(data)
}
